import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'
const Layout =  () => import(/* webpackChunkName: "layout" */ '@/views/layout/layout.vue');
import  {routers} from './menus'
const routes = [

    {
        path: '/404',
        name: '404',
        component: () => import(/* webpackChunkName: "404" */ '../views/404.vue')
    },
    { path: '/', name: 'GetDate', component:() => import(/* webpackChunkName: "supplierAdd" */ '@/views/dates/get_date.vue'), meta: {title: '日报',icon:'iconyibiaopan',ishide:true},},
    {
        path: '/:catchAll(.*)',
        redirect:'/404',
    },
    // ...routers
]

const router = createRouter({
    // history: createWebHistory(process.env.BASE_URL),
    history: createWebHashHistory(process.env.BASE_URL),
    routes
})

export default router